package com.imooc.courseprice.client;

import com.imooc.courselist.entity.Course;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @description: 课程列表Feign客户端
 */
@FeignClient("course-list")
public interface CourseListClient {
    @GetMapping("/courses")
    List<Course> courseList();
}
